package com.umgsai.thread.thread14;

public class Service {
	public void testMethod1(MyObject object) {
		synchronized (object) {
			try {
				System.out.println(Thread.currentThread().getName() + "-testMethod1 begin-" + System.currentTimeMillis());
				Thread.sleep(2000);
				System.out.println(Thread.currentThread().getName() + "-testMethod1 end-" + System.currentTimeMillis());
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}
}
